package com.cskaoyan.market.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @ClassName SpringMVCConfig
 * @Description
 * @Author MZ
 * @Date 2023/5/18 21:14
 */
@Configuration
public class SpringMVCConfig implements WebMvcConfigurer {
    // 设置静态资源路径映射
    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {
        registry.addResourceHandler("/wx/storage/fetch/**").addResourceLocations("file:D:/image/");
    }
}
